Use cord to rearrange procedures in an executable to correspond with an ordering provided in a reorder_file. Typically, the ordering is arranged either to minimize paging and/or to maximize the instruction cache hit rate.cord prog_name [reorder_file ...]
The reorder file is produced by the -feedback option to prof (for information on prof and the -feedback option, see Table 4-1, Options for prof, or the prof(1) reference page). The default reorder file is named prog.fb, if you do not specify reorder_file. You can also produce a feedback file using the WorkShop performance tools. WorkShop includes a tool, cvcord, that can combine multiple working set files into an optimized feedback file.
You can specify multiple reorder files on the command line; the first reorder file has the highest priority in rearranging the order. Thus you can improve paging in different program phases providing that multiple feedback files are generated by executing different phases of the program or by executing the program with distinct input data that cause different regions of the program to be executed.